class FileModel {
  int? accessType;
  String? description;
  String? imageHashCode;
  int? id;
  String? mediaName;
  String? mediaPath;
  int? mediaSize;
  int? mediaType;
  String? mimeType;
  String? name;
  String? originalMediaName;

  /// 存储位置(1.服务器; 2.七牛; 3 阿里)
  int? storeType;
  String? url;

  FileModel(
      {this.accessType,
      this.description,
      this.imageHashCode,
      this.id,
      this.mediaName,
      this.mediaPath,
      this.mediaSize,
      this.mediaType,
      this.mimeType,
      this.name,
      this.originalMediaName,
      this.storeType,
      this.url});

  FileModel.fromJson(Map<String, dynamic> json) {
    accessType = json['accessType'];
    description = json['description'];
    imageHashCode = json['hashCode'];
    id = json['id'];
    mediaName = json['mediaName'];
    mediaPath = json['mediaPath'];
    mediaSize = json['mediaSize'];
    mediaType = json['mediaType'];
    mimeType = json['mimeType'];
    name = json['name'];
    originalMediaName = json['originalMediaName'];
    storeType = json['storeType'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['accessType'] = this.accessType;
    data['description'] = this.description;
    data['hashCode'] = this.imageHashCode;
    data['id'] = this.id;
    data['mediaName'] = this.mediaName;
    data['mediaPath'] = this.mediaPath;
    data['mediaSize'] = this.mediaSize;
    data['mediaType'] = this.mediaType;
    data['mimeType'] = this.mimeType;
    data['name'] = this.name;
    data['originalMediaName'] = this.originalMediaName;
    data['storeType'] = this.storeType;
    data['url'] = this.url;
    return data;
  }
}
